﻿using FashionWebsite;
using FashionWebsite.Models;
using FashionWebsite.Models.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FashionWebsite.Controllers
{
    public class ProductStoreController : Controller
    {
        ShopOnlineDataContext data = new ShopOnlineDataContext();
        
        //
        // GET: /ProductStore/
        public String welcome()
        {
            return "hellooo ";
        }

        public ActionResult Index()
        {
            var categories = from c in data.Categories
                             select c;
            var viewModel = new DalCategory
            {
                category = categories.ToList(),
            };
            return View(viewModel);
        }

       
    }
}
